﻿<%@ page contentType="text/html;charset=utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>dsdown管理中心</title>
<link rel="stylesheet" href="/resources/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/resources/css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/resources/css/invalid.css" type="text/css" media="screen" />	
<script type="text/javascript" src="/resources/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/resources/scripts/simpla.jquery.configuration.js"></script>
<script type="text/javascript" src="/resources/scripts/facebox.js"></script>
<script type="text/javascript" src="/resources/scripts/jquery.wysiwyg.js"></script>
<script type="text/javascript" src="/resources/scripts/manageIndex.js"></script>
<script type="text/javascript" src="/resources/scripts/scollbarPatch.js"></script>
<style type="text/css">
.content-box-head th{
width:10%;
word-break:keep-all;
}
</style>
</head>
	<body><div id="body-wrapper"><!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->
			
			<h1 id="sidebar-title"><a href="#">Simpla Admin</a></h1>
		  
			<!-- Logo (221px wide) -->
			<a href="#"><img id="logo" src="/resources/images/logo2.png"  /></a>
		  
			<!-- Sidebar Profile links -->
			<div id="profile-links">
				<span style="font-size:12px;color:#ccc; text-align:right">欢迎！至高无上的管理员。</span><br />
				<br />
				<a href="#" title="浏览主页" style="font-size:12px">浏览主页</a> | <a href="loginOut.do" title="登出" style="font-size:12px">登出</a>
			</div>        
			
			<ul id="main-nav" >  <!-- Accordion Menu -->
				
				<li>
					<a class="nav-top-item no-submenu" href="portalLogin.do?pm=login"> <!-- Add the class "no-submenu" to menu items with no sub menu -->
						<span style="font-weight:bold">[控制面板]</span>
					</a>       
				</li>
				
				<li> 
					<a href="gameManage.do?pm=gotoGameList" class="nav-top-item current" clickself="1"> <!-- Add the class "current" to current menu item -->
					图鉴管理
					</a>
					<ul>
						<li><a href="gameManage.do?pm=gotoGameList" clickself="1" >图鉴管理</a></li>
						<li><a href="gameManage.do?pm=gotoPublishCompanyList" clickself="1">发行厂商管理</a></li>
					</ul>					
				</li>
				
				<li>
					<a href="#" class="nav-top-item current" clickself="1">
						资讯管理
					</a>
					<ul>
						<li><a href="articleManage.do?pm=gotoArticleList" clickself="1">文章管理</a></li>
						<li><a href="gameManage.do?pm=gotoHomePagePicCfg" clickself="1">主页图片配置</a></li>
					</ul>	
				</li>
				
				<li>
					<a href="#" class="nav-top-item current" clickself="1">
						网站配置
					</a>
					<ul>
						<li><a href="gameManage.do?pm=gotoServerCfg" clickself="1">服务器参数配置</a></li>
						<li><a href="#" clickself="1">统计代码</a></li>
						<li><a href="#" clickself="1">紧急下载关闭</a></li>
						<li><a href="#" clickself="1">BanIp</a></li>
					</ul>
				</li>      
				
			</ul> <!-- End #main-nav -->
			
			
			
		</div></div> <!-- End #sidebar -->
		
		<div id="main-content"> <!-- Main Content Section with everything -->
			<!-- 右边START -->
			<%
				String controlFlag=request.getAttribute("control")!=null?request.getAttribute("control").toString():"";
			%>
			<%if(!controlFlag.equals("")){
				if(controlFlag.equals("gotolist")){
			%>
				<!-- 游戏列表 -->
				<%@ include file="gameList_sub.jsp"  %>
				<%}else if(controlFlag.equals("gotoPublishCompanyList")){ %>
				<!-- 游戏发行厂商列表 -->
				<%@ include file="publishCompanyList_sub.jsp" %>	
				<!-- 游戏发行厂商新增 -->
				<%}else if(controlFlag.equals("gotoPublishCompanyAddorModify")){ %>
				<%@ include file="publishCompanyAddorModify_sub.jsp" %>	
				<!-- 游戏新增 -->
				<%}else if(controlFlag.equals("gotoGameAddorModify")){ %>
				<%@ include file="gameAddorModify_sub.jsp" %>	
				<!-- 文章列表 -->
				<%}else if(controlFlag.equals("gotoArticleList")){ %>
				<%@ include file="articleList_sub.jsp" %>	
				<!-- 文章新增 -->
				<%}else if(controlFlag.equals("gotoArticleAddorModify")){ %>
				<%@ include file="articleAddorModify_sub.jsp" %>
				<!-- 主页图片配置 -->	
				<%}else if(controlFlag.equals("gotoHomePagePicCfg")){ %>
				<%@ include file="homePagePicCfg_sub.jsp" %>	
				<!-- 服务器配置 -->	
				<%}else if(controlFlag.equals("gotoServerCfg")){ %>
				<%@ include file="serverCfg_sub.jsp" %>	
				<%}    
			}else{%>
			<%@ include file="index_sub.jsp" %>
			<%}
			%>
            <!-- 右边END -->
            
            <div class="clear"></div>
			<div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						&#169; Copyright 2012 Dsdown.com | Powered by JadeStudio | <a href="#">Top</a>
				</small>
			</div>
		</div> <!-- End #main-content -->
	</div>
	</body>
</html>